﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="Form1.cs" company="hello_world">
//   无版权
// </copyright>
// <summary>
//   Defines the Form1 type.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace WindowsFormsApp1
{
    using System;
    using System.Windows.Forms;

    /// <summary>
    /// The form 1.
    /// </summary>
    public partial class DDLMainForm : Form
    {
        /// <summary>
        /// The u 1.
        /// </summary>
        private Calendar _u1;

        /// <summary>
        /// The u 2.
        /// </summary>
        private List _u2;

        /// <summary>
        /// Initializes a new instance of the <see cref="DDLMainForm"/> class.
        /// </summary>
        public DDLMainForm()
        {
            InitializeComponent();
        }

        /// <summary>
        /// The form 1_ load.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        private void Form1_Load(object sender, EventArgs e)
        {
            _u1 = new Calendar();
            _u2 = new List();
        }

        /// <summary>
        /// The button_calendar_click.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        private void Btn_calendar_Click(object sender, EventArgs e)
        {
            _u1.Show();
            grp_show.Controls.Clear();
            grp_show.Controls.Add(_u1);
        }

        /// <summary>
        /// The button_list_ click.
        /// </summary>
        /// <param name="sender">
        /// The sender.
        /// </param>
        /// <param name="e">
        /// The e.
        /// </param>
        private void Btn_list_Click(object sender, EventArgs e)
        {
            _u2.Show();
            grp_show.Controls.Clear();
            grp_show.Controls.Add(_u2);
        }
    }
}
